package com.aaa.entity;

public enum ResultCode {
    ERROR(500,"系统错误"),
    UNSUPPORTED_GRANT_TYPE(201,"授权类型错误"),
    BAD_CLIENT_CREDENTIALS(202,"客户端凭证错误"),
    BAD_CREDENTIALS(203,"用户名密码错误"),
    ACCESS_TOKEN_EXPIRED(204,"token过期"),
    NO_AUTHORITY(205,"权限不足"),
    NO_DISABLED(206,"用户被禁用");
    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
